﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Agresso.Interface.Layer.Domain
{
    public class ResponsibleUser
    {
        public int ResponsibleUser_id;
        public string softmar_user = "";
        public string agresso_user = "";
        public ResponsibleUser() { }
        public ResponsibleUser(SqlDataReader rd) 
        {
            softmar_user = rd["softmar_user"] is DBNull ? softmar_user : rd["softmar_user"].ToString();
            agresso_user = rd["agresso_user"] is DBNull ? agresso_user : rd["agresso_user"].ToString();
            ResponsibleUser_id = rd["ResponsibleUser_id"] is DBNull ? ResponsibleUser_id : Convert.ToInt32(rd["ResponsibleUser_id"]);
        }
    }
}
